x2APIC: translate IO-APIC entries when enabling the IOMMU
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 25 Oct 2019 14:00:10 +0000 (16:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Oct 2019 14:00:10 +0000 (16:00 +0200)
commit0e606c1bc0e5b8ecdf699203fbe6dd29f396a41b
treeffc66e9d61dbb8fe90594faa6da177b90bdb591e
parent7b1e23376968cd1ab3bcae3939524e3dd84b89dc
x2APIC: translate IO-APIC entries when enabling the IOMMU

When interrupt remapping is enabled as part of enabling x2APIC the
IO-APIC entries also need to be translated to the new format and added
to the interrupt remapping table.

This prevents IOMMU interrupt remapping faults when booting on
hardware that has unmasked IO-APIC pins.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/apic.c
xen/arch/x86/io_apic.c
xen/include/asm-x86/io_apic.h